﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SerialStateManager.aspx.cs"
    Inherits="WebPubManager_SerialStateManager" %>

<html>
<head runat="server">
    <title>业务状态管理</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../ScriptFile/meizzDate.js"></script>

    <script language="javascript" type="text/javascript">
    //设置tabcontrol按钮的背景颜色
    function SetBackColor(varCtrl) {   
        if(varCtrl=="0")
        {            
            document.getElementById("td1").style.backgroundImage="url(../images/top_button_05.gif)";
            document.getElementById("td2").style.backgroundImage="url(../images/top_button_03.gif)";
        }
        else
        {
            document.getElementById("td1").style.backgroundImage="url(../images/top_button_03.gif)";
            document.getElementById("td2").style.backgroundImage="url(../images/top_button_05.gif)";
        }
    }
    function isIdCardNo()
    {
        var num=document.form1.txtIID.value;
        if (isNaN(num)) 
        {
            alert("受理编号请输入数字！");
            document.form1.txtIID.value="";
            return false;
        }
    }
    function Cleaner()
    {
        document.form1.ddlStatus.selectedIndex=0;   
        document.form1.ddlControl.selectedIndex=0;   
        document.form1.txtdatebegin.value = "";
        document.form1.txtdateend.value = "";
        document.form1.txtIID.value = "";
        document.form1.txtName.value = "";
    }

    //打开业务详细信息 addby zhongjian 20091223
    function ViewInstance(Instance) {
        var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance;
        window.open(strURL, 'viewer', "fullscreen=1,scrollbars=0;");
    }
    //
    function ViewInstanceFrm(Instance) {
        var strURL = "../office/viewworkflow.aspx?IID=" + Instance;
        window.location.href = strURL;
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" id="tabMenu">
            <tr>
                <td id="td1" runat="server" style="background-image: url(../images/top_button_05.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SerialStateManager.aspx?flag=Remove">业务删除</a>
                </td>
                <td id="td2" runat="server" style="background-image: url(../images/top_button_03.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SerialStateManager.aspx?flag=Recovery">业务恢复</a>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    案件状态<asp:DropDownList ID="ddlStatus" runat="server" Width="100px">
                        <asp:ListItem Selected="True" Value="1">正在办理</asp:ListItem>
                        <asp:ListItem Value="2">已通过</asp:ListItem>
                        <asp:ListItem Value="-2">未通过</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    业务类型<asp:DropDownList ID="ddlControl" runat="server" Width="180px">
                    </asp:DropDownList>
                </td>
                <td>
                    接件时间(从)
                    <input name="txtdatebegin" id="txtdatebegin" type="text" readonly="readonly" onfocus="setday(this)"
                        size="12" runat="server" />
                    到
                    <input name="txtdateend" id="txtdateend" type="text" readonly="readonly" size="12"
                        onfocus="setday(this)" runat="server" />
                </td>
                <td>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" OnClientClick="isIdCardNo()" />
                    <input id="btnCleaner" type="button" value="重置" onclick="Cleaner()" />
                </td>
            </tr>
            <tr>
                <td>
                    受理编号<asp:TextBox ID="txtIID" runat="server" Width="100px"></asp:TextBox>
                </td>
                <td>
                    申请单位<asp:TextBox ID="txtName" runat="server" Width="180px"></asp:TextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </table>
        <table style="width: 98%; border-top-width: 0px" class="tab">
            <tr style="border-top-width: 0px">
                <td style="border-top-width: 0px">
                    <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True" Width="785px"
                        HideTextLength="20" DivFstClass-DivButtonClass="input" AutoGenerateColumns="False"
                        DivScdClass-DivButtonClass="input" DivTrdClass-DivButtonClass="input" ShowCmpAndCancel="False"
                        AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True"
                        CustomSortExpression="" AllowSortingAscImgCss="" AllowSortingDescImgCss="" ShowHideColModel="None"
                        OnRowCreated="gridviewCar_RowCreated" OnOnLoadData="recvgrid_OnLoadData">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:TemplateField HeaderText="受理编号">
                                <ItemTemplate>
                                    <a href="#" onclick="ViewInstance('<%# Eval("iid")%>')">
                                        <%# DataBinder.Eval(Container.DataItem, "iid")%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="业务类型" DataField="业务类型" />
                            <asp:BoundField HeaderText="申请单位" DataField="申请单位" />
                            <asp:BoundField HeaderText="接件时间" DataField="接件时间" />
                            <asp:BoundField HeaderText="案件状态" DataField="案件状态" />
                            <asp:TemplateField HeaderText="操作" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hydel" runat="server" Text="删除" Visible="false"></asp:HyperLink>
                                    <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" ToolTip='<%# Eval("iid")%>'
                                        OnClientClick="return confirm('确定要删除该业务吗？')">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hyRec" runat="server" Text="恢复" Visible="false"></asp:HyperLink>
                                    <asp:LinkButton ID="lbtnRec" runat="server" OnClick="lbtnRec_Click" ToolTip='<%# Eval("iid")%>'
                                        OnClientClick="return confirm('确定要恢复该业务吗？')">恢复</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </controlDefine:CustomGridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>